package top.shmly.universal.base.response;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
public class BasePageQuery implements Serializable {

    private static final Integer DEFAULT_PAGE_SIZE = 20;
    private static final Integer DEFAULT_FIRST_PAGE = 1;
    private static final Integer DEFAULT_TOTAL_ITEM = 0;

    @ApiModelProperty("每页显示的大小")
    private Integer pageSize = DEFAULT_PAGE_SIZE;

    @ApiModelProperty("当前页数")
    private Integer currentPage = DEFAULT_FIRST_PAGE;

    @ApiModelProperty(value = "是否查询数量")
    private Boolean isSearchCount = true;


}